/*
 * Copyright Thoughtworks, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

$overlay-header-bg: #33374f;
$overlay-border-color: #ccc;
$overlay-border-radius: 3px;

.overlay {
  border: 0 solid;
  padding: 0;
  position: absolute;
  text-align: left;
  top: 10%;
  z-index: 10000;
  width: 100%;
  max-height: 500px;
  border-radius: $overlay-border-radius;

  .overlay-header {
    background: $overlay-header-bg;
    padding: 15px 20px;
    border-radius: $overlay-border-radius $overlay-border-radius 0 0;

    span {
      font-size: 16.5px;
      margin: 0;
      color: #fff;
      font-weight: 500;
      max-width: calc(100% - 25px);
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }

  .overlay-close {
    position: absolute;
    right: 20px;
    top: 10px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
  }

  .close-icon {
    @include icon-before($type: xmark);
  }
}

